#ifndef __SENSOR_H
#define __SENSOR_H

#define LED_Dust_ON GPIO_SetBits(GPIOA,GPIO_Pin_5);
#define LED_Dust_OFF  GPIO_ResetBits(GPIOA,GPIO_Pin_5);

void Sensor_Init(void);
uint16_t ADC1_GetValue(uint16_t);
uint8_t Digital_Light(void);
uint8_t Digital_Inf(void);
uint16_t Analog_Light(void);
uint16_t Analog_Inf(void);
uint16_t Analog_Dust(void);
uint16_t Average_Dust(uint8_t times);
uint16_t Analog_Temp(void);

#endif
